package com.hdoit.ares.logical.cust.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.acc.model.WithdrawParam;
import com.hdoit.ares.logical.acc.service.IWithdrawParamService;
import com.hdoit.ares.logical.cust.dao.ICustPosterDao;
import com.hdoit.ares.logical.cust.model.CustPoster;
import com.hdoit.ares.logical.cust.service.ICustPosterService;
import com.hdoit.ares.logical.viewmodel.cust.CustPosterSearch;
import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      xieqixiu
 * @email       
 * @createtime  2018年03月10日 16:24:18
 * @comment
 */
@Component
public class CustPosterServiceImpl extends SuperService<CustPoster> implements ICustPosterService{

	private ICustPosterDao custPosterDao;
	private IWithdrawParamService withdrawParamService;
	
	public IWithdrawParamService getWithdrawParamService() {
		return withdrawParamService;
	}

	@Resource
	public void setWithdrawParamService(IWithdrawParamService withdrawParamService) {
		this.withdrawParamService = withdrawParamService;
	}

	public ICustPosterDao getCustPoster() {
		return custPosterDao;
	}

	@Resource
	public void setCustPoster(ICustPosterDao custPoster) {
		custPosterDao = custPoster;
	}

	@Override
	public List<CustPoster> queryListBack(CustPosterSearch custPosterSearch,PagerModel pagerModel) {
		
		return custPosterDao.queryListBack(custPosterSearch, pagerModel);
	}

	@Override
	public List<CustPoster> queryListApi(CustPosterSearch custPosterSearch) {
		WithdrawParam pageSize = withdrawParamService.queryModelByHelpCode("pageSize");
		custPosterSearch.setPageSize(pageSize.getParam());
		
		return custPosterDao.queryListApi(custPosterSearch);
	}

	

}